import Vue from "vue";
import Vuex from "vuex";
import print from "./print";
Vue.use(Vuex);

const state = {
  name: "zhangs",
  valueAdd: {
    pageNo: 1,
    keyword: null,
    firmId: null,
    deptId: null,
    employeeId: null,
    employeeTypeId: null,
    calculationState: null,
    approvalByMeState: null,
    markUpdate: null,
    orderState: null,
    productId: ""
  }
};
const mutations = {
  valueQuery(state, newQueryObj) {
    state.valueAdd = newQueryObj;
  }
};

export default new Vuex.Store({
  state,
  mutations,
  actions: {},
  modules: {
    print
  }
});
